from selenium.webdriver.common.by import By

from xueqiu_app_po.base.xueqiu_app import XueQiuApp
from xueqiu_app_po.page.about_page import AboutPage


class SetUpPage(XueQiuApp):
    _ABOUT = By.XPATH,"//*[@resource-id='com.xueqiu.android:id/btn_about']"
    def goto_about(self):
        self.swipe_element(*self._ABOUT).click()
        return AboutPage(self.driver)